str1 = input("请输入：")
str2 = ""
max_count = 0
for i in str1:
    if i not in str2:
        str2 += i
        count1 = list(str1).count(i)
        print(i, "出现的字数为", count1)
        if max_count < count1:
            max_count = count1
print("出现次最多的字符", i, "总共出现了", max_count, "次")